﻿<?php


	//Declaración de includes
	include_once "../funciones.php";
	include_once "../menus.inc";

	//Variables Globales

	//Cargando página
	iniciar();

    cargarDivLogo();
   	cargarDivMenu();
    cargarDivCabecera();
     echo "<form name='formulario' action=nuevoInforme.php method='POST'>";
?>
     <div id='divContenido'>
     <table id='tablaListado'>
     <tr>
        <td>Campeonato:</td>
        <td><select class='' onChange=cargarDivInsertar() id='OID_CAM' name='OID_CAM'  ><?php getSelectCampeonatos($_REQUEST['oid']); ?></select></td>
        <td><button type='submit' >Generar Informe</button></td>
     </tr>
<?php
    if(isset($_REQUEST['oid'])){
        $oid_cam=$_REQUEST['oid'];
        global $oid_cam;
    }
?>
    </form>
     </table>
      <form name='formulario2' action=insertar.php method='POST'>
<?php

    if(isset($_REQUEST['oid_inf'])){
        echo "<input type=hidden name='oid_inf' value='".$_REQUEST['oid_inf']."' />";
        echo "<div class='error2' id='error'>Numero de Informe: ".$_REQUEST['oid_inf']."</div></br>";
        echo "<table id='tablaListado'>";
        echo "<tr><td>Tipo:</td><td><select id='OID_MAT' name='OID_MAT' >";
        getSelectMateriales();
        echo "</select></td></tr>";
        echo "<tr><td>Cantidad:</td><td><input type=text id='CANTIDAD' name='CANTIDAD'></td></tr>";
        echo "<tr><td><button type='submit'>Enviar</button></td></form><td><form name='formulario3' action=insertar.php method='POST'><button type='submit'>Nuevo Informe</button></td></tr>";
        echo "</form></table>";
		$mensaje="";
		echo "<div id='divModificar'>".$mensaje."</div>";
        echo "</br>";


    }
?>




     </div>


<?php


    finalizar();
?>